package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 图片表
 * </p>
 *
 * @author stylefeng
 * @since 2018-09-26
 */
@TableName("upload_photo")
public class UploadPhoto extends Model<UploadPhoto> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    @TableField("upload_info_id")
    private Integer uploadInfoId;
    /**
     * 图片类型名称
     */
    @TableField("photo_type")
    private String photoType;
    /**
     * 图片名称
     */
    @TableField("photo_name")
    private String photoName;
    /**
     * 图片地址
     */
    @TableField("photo_addr")
    private String photoAddr;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUploadInfoId() {
        return uploadInfoId;
    }

    public void setUploadInfoId(Integer uploadInfoId) {
        this.uploadInfoId = uploadInfoId;
    }

    public String getPhotoType() {
        return photoType;
    }

    public void setPhotoType(String photoType) {
        this.photoType = photoType;
    }

    public String getPhotoName() {
        return photoName;
    }

    public void setPhotoName(String photoName) {
        this.photoName = photoName;
    }

    public String getPhotoAddr() {
        return photoAddr;
    }

    public void setPhotoAddr(String photoAddr) {
        this.photoAddr = photoAddr;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UploadPhoto{" +
        "id=" + id +
        ", uploadInfoId=" + uploadInfoId +
        ", photoType=" + photoType +
        ", photoName=" + photoName +
        ", photoAddr=" + photoAddr +
        "}";
    }
}
